# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=you-get
pkgver=0.4.1525
pkgrel=2
pkgdesc="Tiny command line utility to download media contents"
url="https://you-get.org"
arch="noarch"
license="MIT"
depends="ca-certificates ffmpeg python3"
makedepends="py3-setuptools"
subpackages="
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion"
source="https://files.pythonhosted.org/packages/source/y/you-get/you-get-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm644 contrib/completion/you-get-completion.bash \
		"$pkgdir"/usr/share/bash-completion/completions/you-get
	install -Dm644 contrib/completion/you-get.fish \
		"$pkgdir"/usr/share/fish/completions/you-get.fish
	install -Dm644 contrib/completion/_you-get \
		"$pkgdir"/usr/share/zsh/site-functions/_you-get
}

sha512sums="
2d9bc2e66da39dbe0146ad4ff88dd1b45ce17a2208b82196c96a36ed1f4a0a86ade274b3c7b8cf683cf46d69f813caed1e24f58a3a7677a29f1999707da9a5ba  you-get-0.4.1525.tar.gz
"
